import {
	PageView
} from '@/layouts';

export default {
	path: '/timing',
	name: 'timing',
	redirect: '/timing/Monitor',
	component: PageView,
	meta: {
		title: '定时任务',
		icon: 'hourglass',
		permission: [ 'TimingTask' ]
	},
	children: [{
			path: '/timing/Monitor',
			name: 'MonitorForm',
			component: () => import('@/views/timing/Monitor'),
			meta: {
				title: '任务监控',
				permission: [ 'timing_list' ]
			},
		},
		{
			path: '/timing/Execute',
			name: 'ExecuteForm',
			component: () => import('@/views/timing/Execute'),
			meta: {
				title: '执行记录',
				permission: [ 'record_list' ]
			},
		},
	]
};
